package cn.good.yan.sf.t2;

/**
 * 2.数组 - 二维数组
 *
 * @author shengren.yan
 * @create 2024-04-17
 */
public class Demo3 {

    public static void main(String[] args) {
        // 二维数组
        int[][] arr = {
                {1, 2, 3},
                {3, 4, 5},
                {7, 8, 9},
        };
        // 遍历二维数据
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.println(arr[i][j]);
            }
        }
    }
}
